import express from 'express';
import { addCategory, deleteCategory, updateCategory, getCategoryById, getCategories } from '../controllers/CategoryController';

const router = express.Router();

router.post('/', addCategory);
router.delete('/:id', deleteCategory);
router.post('/update', updateCategory);
router.get('/:id', getCategoryById);
router.post('/page', getCategories);

export default router;
